#include "StompedReality/Core/Graphics/RenderSystem.h"
#include "StompedReality/Core/IGame.h"
#include "StompedReality/Core/OS/SystemMessageProcessor.h"
void StompedReality::Core::SystemMessageProcessor::Initialize( )
{
}

bool StompedReality::Core::SystemMessageProcessor::Update( )
{
  MSG msg;
  while ( PeekMessage ( &msg, NULL, 0, 0, PM_REMOVE ) )
  {
    this->ProcessMsg( &msg );
    if ( msg.message == WM_QUIT )
    {
      this->m_Game->RenderSystem( )->CloseWindow( );
    }
    else
    {
      TranslateMessage ( &msg );
      DispatchMessage ( &msg );
    }
  }
  return true;
}

